name: "Marketing Content Generator"
slug: "marketing-content-generator"
icon: "text"
category_slugs: ["marketing", "sales", "productivity"]
description: "Add your brand guidelines and other instructions to this template and use the generated app to quickly create marketing content"
provider_slug: "promptly"
pages:
  - title: "Configuration"
    description: "Tune your content generator"
    input_fields:
      - name: "brand_guidelines"
        title: "Brand information"
        type: "text"
        description: "Add your brand guidelines, company information etc., to set a personality for the content generator"
        path: "processors[0].input.system_message"
app:
  name: "Marketing Content Generator"
  slug: "marketing-content-generator"
  description: "Add your brand guidelines and other instructions to this template and use the generated app to quickly create marketing content"
  type_slug: "web"
  input_fields:
    - name: "format"
      title: "Format"
      type: "select"
      options:
        - label: "Blog Post"
          value: "Blog Post"
        - label: "LinkedIn Post"
          value: "LinkedIn Post"
        - label: "Instagram Post"
          value: "Instagram Post"
        - label: "Landing Page"
          value: "Landing Page"
        - label: "Facebook Post"
          value: "Facebook Post"
        - label: "Video Script"
          value: "Video Script"
        - label: "Product Description"
          value: "Product Description"
        - label: "Press Release"
          value: "Press Release"
        - label: "Newsletter"
          value: "Newsletter"
        - label: "Case Study"
          value: "Case Study"
      description: "Specify the marketing content format"
    - name: "messaging"
      title: "Messaging"
      type: "text"
      description: "The key messages or value proposition that the content conveys to the audience, such as highlighting the benefits of a product or service or addressing a pain point etc.,"
    - name: "product_name"
      title: "Product Name"
      type: "string"
      description: "Name of the product you want to generate content for"
    - name: "tone"
      title: "Tone"
      type: "select"
      options:
        - label: "Formal"
          value: "Formal"
        - label: "Casual"
          value: "Casual"
        - label: "Professional"
          value: "Professional"
        - label: "Humorous"
          value: "Humorous"
        - label: "Informative"
          value: "Informative"
      description: "Set the tone for the content"
  output_template:
    markdown: |
      {{_inputs1.choices[0].content}}
  processors:
    - id: "_inputs1"
      provider_slug: "openai"
      processor_slug: "chatgpt"
      input:
        {
          "messages":
            [
              {
                "name": "",
                "role": "user",
                "content": "Create a {{_inputs0.format}}  for {{_inputs0.product_name}} . The content will be posted on {{_inputs0.platform}} . Consider the following characteristics when generating the content:\n1. Tone of the content should be {{_inputs0.tone}}\n2. messaging {{_inputs0.messaging}}\n3. Messaging is the 4. Limit the content generated to a maximum of 400 words",
                "function_call": { "name": "", "arguments": "" },
              },
            ],
          "chat_history": [],
          "system_message": "You are an AI language model, and your task is to to act as a Marketing Content Generator. Your task is to create engaging marketing content. Please generate the content ensuring that it contributes to a comprehensive marketing strategy. ",
        }
      config:
        {
          "n": 1,
          "model": "gpt-4",
          "top_p": 1,
          "stream": true,
          "max_tokens": 2459,
          "temperature": 0.7,
          "retain_history": false,
          "presence_penalty": 0,
          "frequency_penalty": 0,
          "auto_prune_chat_history": false,
        }
